﻿using System;
using NpCrm.DataAccess;


namespace GenerateSchema
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                var dbContext = new NpCrmDataContext().Database;
                dbContext.CreateIfNotExists();
                dbContext.Initialize(true);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}
